/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const amazonRouter = {
  path: '/amazon',
  component: Layout,
  redirect: '/amazon/accountManagement',
  name: 'amazon',
  meta: {
    title: '运营助手',
    icon: 'shopping',
    requiresAuth: true,
    permission: '001000',
    roles: ['root', 'admin', 'guest' ]
  },
  children: [
    {
      path: 'accountManagement',
      name: 'accountManagement',
      component: () => import('@/views/amazon/accountManagement'),
      meta: { title: '账号管理', icon: 'dian' },
      roles: ['root', 'admin', 'guest' ]
    },
    {
      path: 'accessLog',
      name: 'accessLog',
      component: () => import('@/views/amazon/accessLog'),
      meta: { title: '接入日志', icon: 'dian' },
      roles: ['root', 'admin', 'guest' ]
    },
  ]
}

export default amazonRouter
